package com.qms.qep.mapper;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 生产统计数据Mapper接口
 * 
 * @author qms
 */
@Mapper
public interface ProductionStatisticsMapper {
    
    /**
     * 获取合格率统计总体数据
     */
    Map<String, Object> getQualificationRateSummary(Map<String, Object> params);
    
    /**
     * 按产品获取合格率统计
     */
    List<Map<String, Object>> getQualificationRateByProduct(Map<String, Object> params);
    
    /**
     * 按批次获取合格率统计
     */
    List<Map<String, Object>> getQualificationRateByBatch(Map<String, Object> params);
    
    /**
     * 按工序获取合格率统计
     */
    List<Map<String, Object>> getQualificationRateByProcess(Map<String, Object> params);
    
    /**
     * 获取合格率趋势数据
     */
    List<Map<String, Object>> getQualificationRateTrend(Map<String, Object> params);
    
    /**
     * 产品维度合格率对比
     */
    List<Map<String, Object>> compareQualificationRateByProducts(Map<String, Object> params);
    
    /**
     * 批次维度合格率对比
     */
    List<Map<String, Object>> compareQualificationRateByBatches(Map<String, Object> params);
    
    /**
     * 工序维度合格率对比
     */
    List<Map<String, Object>> compareQualificationRateByProcesses(Map<String, Object> params);
} 